<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
     <head>
     <link href="{{MEDIA_URL}}/img/favicon.ico" rel="icon" type="image/x-icon"> 
     <link href="http://{{ request.get_host }}/site_media/css/avnza.css" rel="stylesheet" type="text/css" media="screen"/>      
     {% block headcss %}
     {% endblock %}     
     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
     <script type="text/javascript" src="http://{{ request.get_host }}/site_media/js/jquery-ui-1.8.2.custom.min.js"></script>
     <script type="text/javascript" src="http://{{ request.get_host }}/site_media/js/superbgimage/jquery.superbgimage.min.js"></script>
     <script type="text/javascript" src="http://{{ request.get_host }}/site_media/js/fancyzoom.min.js"></script>
     <script type="text/javascript" src="http://{{ request.get_host }}/site_media/js/jquery.nivo.slider.pack.js"></script>
     <script type="text/javascript" src="http://{{ request.get_host }}/site_media/js/avanza.js"></script>
     {% block headscr %}
     {% endblock %}     
     <script  type="text/javascript">
          http_base  = 'http://{{ request.get_host }}/'
          {% block headvars %}
          {% endblock %}     
     </script>
     <title>{% block title %}Avanza Promociones{% endblock %}</title>    
     </head>

     <body>
          
          <div  id="menubar" class="menu">
                <a class="logo" href="http://{{ request.get_host }}" title="Avanza Promociones. Inicio">&nbsp;</a>
          {% block menu %}
          {% get_menu avanzaweb.Menu %}
               <img id="gmenu" src="http://{{ request.get_host }}/site_media/img/inimenu.png"/>
               <ul class="topnav">
               {% for itm in menu  %}
                    <li  {% if forloop.first %} class="primero"  {% endif %}   {% if forloop.last %} class="ultimo"  {% endif %}>
                         <a {% if  itm.uri %}href="http://{{ request.get_host }}/{{ itm.uri }}"{% endif %}>                    
                              <span class="puntos{% if forloop.first %} primero"> :::::: {% else %}"> ::: {% endif %}</span>
                              {{ itm.nombre}}
                              <span class="puntos">{% if forloop.last %} :::::: {% else %} ::: {% endif %}</span>
                         </a>
                    {% if itm.subm %}
                         <ul >
                         {% for sm in itm.subm %}
                              {% if forloop.first %}<img class="semiesqizq" alt="" src="http://{{ request.get_host }}/site_media/img/semiesqizq.png"/>{% endif %}
                              <li><a href="http://{{ request.get_host }}/{{ sm.uri }}"  {% if sm.clase %}class="{{ sm.clase }}"{% endif %} title="{{ sm.title }}">{{ sm.nombre}}</a></li>
                              {% if forloop.first %}<img class="semiesqdch" alt="" src="http://{{ request.get_host }}/site_media/img/semiesqdch.png"/>{% endif %}
                         {% endfor %}
                              <!--li class="last">
                                   <img class="esqizq" alt="" src="http://{{ request.get_host }}/site_media/img/esqizq.png"/>
                                   <span class="medio">&nbsp;</span>
                                   <img class="esqdch" alt="" src="http://{{ request.get_host }}/site_media/img/esqdch.png"/>
                              </li--> 
                         </ul>
                    {% endif %}
                    </li>
               {% endfor %}
               </ul>
          {% endblock %}
          </div>
          
          {% block contenido %}
          {% endblock  %}
          
          {% block script %}
          {% endblock  %}
          <a class="reinicio" href="http://www.reinicio.net"><img src="{{ MEDIA_URL }}/img/reinicio.png"/></a>
     </body> 
</html>
